/*======================= dbs.h ===============*/
#ifndef _H_DBS
#define _H_DBS

/* server struct */
struct _dbs{
	char *name;
	char *url;
	char *son;
	int port;
	int state;
	int label;
};

/* Server struct pointer */
typedef struct _dbs *dbs;

/* Create a new server struct */
dbs create_dbs(const char * name, const char * url, int port);

/* delete a server struct */
void delete_dbs(dbs *server);

/* print to stdout a server struct */
void print_dbs(const dbs server);

/* find the server withe the new_name in the list of servers */
dbs find_dbs(dbs list[], int max_size, const char* new_name);

#endif
